package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.domain.BaseEntity;
import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 礼物配置信息业务对象 ykj_gift
 *
 * @author zhang
 * @date 2024-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GiftBo extends BaseEntity {

    /** */
    @NotNull(
            message = "不能为空",
            groups = {EditGroup.class})
    private Long id;

    /** 礼物类型,1普通,2vip，3亲密度礼物 */
    @NotNull(
            message = "礼物类型,1普通,2vip，3亲密度礼物不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Integer type;

    /** 排序id */
    @NotNull(
            message = "排序id不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Integer sortId;

    /** 礼物名称 */
    @NotBlank(
            message = "礼物名称不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String name;

    /** 价格 */
    @NotNull(
            message = "价格不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private BigDecimal price;

    /** */
    @NotBlank(
            message = "不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String imgUri;

    private String svgaUri;

    /**
     * 扩展字段(如果是亲密度礼物表示需要满足多少亲密度)
     *
     * @author 老张
     */
    private String extValue;
}
